package com.springboot.hikersystemapp.repository;

import com.springboot.hikersystemapp.domain.TeamMember;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;

@Repository
public interface TeamMemberRepository extends JpaRepository<TeamMember, Long> {
    TeamMember findByTeamIdAndUserId(Long teamId,Long userId);
    List<TeamMember> findByTeamId(Long teamId);
    List<TeamMember> findByUserId(Long userId);
    Optional<TeamMember> findById(Long id);
}